extends Position2D

# 道具名称
export var prop_name : String

func _on_Area2D_body_entered(body):
	var levels_manager = $"/root/Main/Level" as LevelsManager
	var player = levels_manager.get_current_level_instance().get_player()
	player.add_prop(prop_name)
	queue_free()
